from fit import FitFile
from fit.files.activity import ActivityFile
from fit.messages.common import FileCreator


fin = FitFile.open("../output/2025-05-20.1747698762000.fit")
print(fin)
# for msg in fin:
#     print(msg)

# with FitFile.open(".../output/2025-05-20.1747698762000.fit", mode="w") as fout:
#     fout.copy(fin)

# fnew = ActivityFile.create("path/to/new.fit")
# fnew.append(FileCreator(software_version=666))
# fnew.write()
# fnew.close()